package 蓝桥第二期2024;
import java.util.Arrays;
import java.util.Scanner;

public class task1 {
    public static void main(String[] args) {
        System.out.println(newStringArray());
        contains();
        /*递增（推）*/
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[1000];
        a[0] = 1;
        for (int i = 1; i < a.length; i++) {
            a[i] = 2 * a[i - 1] + 3;
        }
        System.out.println(Arrays.toString(a));
        int count = a[n] % 2024;
        System.out.println(count);
    }

    private static String newStringArray(){
        String[] arr = new String[3];
        arr[0] = "Hello";
        arr[1] = "! ";
        arr[2] = "World";
        String newStr = "";
        for (int i = 0; i < arr.length; i++) {
            newStr += arr[i];
        }
        return newStr.trim();
    }

    private static void contains(){
        String str = newStringArray();
        System.out.println(str.indexOf("!"));
    }
}
